import request from '@/utils/request'

// 查询预警信息发布附件列表
export function listWarnattach(query) {
  return request({
    url: '/dyn/warnattach/list',
    method: 'get',
    params: query
  })
}

// 查询预警信息发布附件详细
export function getWarnattach(attachid) {
  return request({
    url: '/dyn/warnattach/' + attachid,
    method: 'get'
  })
}

// 新增预警信息发布附件
export function addWarnattach(data) {
  return request({
    url: '/dyn/warnattach',
    method: 'post',
    data: data
  })
}

// 修改预警信息发布附件
export function updateWarnattach(data) {
  return request({
    url: '/dyn/warnattach',
    method: 'put',
    data: data
  })
}

// 删除预警信息发布附件
export function delWarnattach(attachid) {
  return request({
    url: '/dyn/warnattach/' + attachid,
    method: 'delete'
  })
}
